﻿@model KPIS.GERP.Models.FIM.ChequeBook

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
@Html.HiddenFor(model => model.ChequeBookId)
}
@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)

<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลหลัก</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main">
                <div class="control-group">
                    <div class="control-label">
                        สมุดบัญชีเงินฝาก :
                    </div>
                    <div class="controls">
                         @Html.DropDownListFor(m => m.BankAccId , new KPIS.GERP.WEB.GFMS.ChequeBookService.ChequeBookServiceClient().SelectListBankType(null))
                         @Html.ValidationMessageFor(model => model.BankAccId)
                    </div>            
                </div>
                <div class="control-group">
                    <div class="control-label">
                        เลขที่สมุดเช็ค :
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.Code)
                        @Html.ValidationMessageFor(model => model.Code)
                    </div>            
                </div>
                <div class="control-group">
                    <div class="control-label">
                        เเช็คใบแรก :
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.StartChequeNo)
                        @Html.ValidationMessageFor(model => model.StartChequeNo) 
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                        เช็คใบสุดท้าย :
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.EndChequeNo)
                        @Html.ValidationMessageFor(model => model.EndChequeNo)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                        หมายเหตุ :
                    </div>
                    <div class="controls">
                        @Html.TextAreaFor(model => model.Remarks, new { style = "width:620px; height: 90px;" })
                        @Html.ValidationMessageFor(model => model.Remarks)
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
